void CMoveTestView::OnMouseMove(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	if(drawtrack)
	{
		CClientDC dc(this);
		dc.SetPixel(point.x,point.y,RGB(0,0,0));
		struct pointstruct *newpoint=new struct pointstruct;
		newpoint->point.x=point.x;
		newpoint->point.y=point.y;
		newpoint->next=NULL;
		if(pointlisthead==NULL)
		{
			pointlisthead=pointlisttrail=newpoint;
		}
		else
		{
			pointlisttrail->next=newpoint;
			pointlisttrail=newpoint;
		}
	}
	
	CView::OnMouseMove(nFlags, point);
}
